﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AntiObesity.Base
{
    public partial class User
    {
        public int Age
        {
            get { return (int)Math.Ceiling((DateTime.Now - DateOfBirth).TotalDays / 365.0); }
        }
    }
}
